Fixing up reset and toggleDebugMode methods as well as some console tidy up