fixed console causing crash when printToConsole command is used
removed debugging cout statements from code