Added capability to execute in background (daemon) and refactored logging. Closes #1
Merge pull request #11 from ettoredn/master

Fixed issue with logging and added capability to execute in background.