Error reporting improvements for parser and error printing
Fix Bug #2