added enum and typedef to define datatypes and preprocessors #define and #if DEBUG (to add code to debug configurations only; SUPER USEFUL)