Imrpoved error reporting.

Instead of an error count, the error messages will be collection and reported on stderr when the app exits.
Removed commented out code.
Merge pull request #99 from lefou/improved-error-reporting

Improved error reporting