Global Debug Variable

added global variable for debug mode on/off