added postbuild of parsing example
added filename to error message
changed all cmdline errors to cerr instead of cout