added DebugMessages class for easier central toggling of debug log messages