daemonized the app (issue #4) and implemented logging (issue #6)