Logging, threaded ing, threaded user input, and daemon functionality