Cleaned up classes and methods.  Removed unnecessary methods.  Added flag to main script which starts all the various threads to enable/disable detailed debug logging.