added xVars class to store global variables (such as debug mode)