Feature/logging

here is an implementation of a basic logging with logging to file support.

Also includes some basic debug logging.