more sane output handling and makefile of grammar parser