Move debugging into the driver to get logging from the first moment
Merge pull request #7 from marcelerz/move_debugging_code

Move debugging into the driver to get logging from the first moment