Added Logging to log file. Demonization. Ctrl+C now kills all threads.