Added daemon debug switch

added a configuration parameter to the config file to allow the daemon
to run in debug mode.