main does the parsing; little bit of debugging text in parser