added logging configuration in config file
cleaned up some debugging