logging is now using LogWidget for output
Added logging and implemented quitting routine