dbgout should be basically all NOP operations when DEBUG_ENABLED == 0
Adding option to enable a preprocessor flag REDIRECT_PRINT_RECORD to push out all of the main record printing to out.txt

QTCreator has a limitation where it can't redirect through the console
command > out.txt and still debug the program
Cleaning up debugging statements