Implemented daemon execution as defualt (See Issue #1) and fixed bug with logging while running in daemon mode.