Adding print_debug class and moving all debug messages to that