Added a daemon function that does not create a console.
Changed error messages about empty response to a debug message.
Added a log command line argument to send messages to a file rather than
system output/error.