changed the debugging functions in this program to model that of the flags used in most linux programs