added debug output to Parser class