Merge debug monitor livelog function
Monitor and debug use now the same background thread function. This should fix issue #9 (closed) and #10 (closed) for the monitor functionality. During testing monitor, at one time a bytearray out of index exception was thrown, but this behaviour is not reproducible.