fixes #1 skips errors, keeps track of error count, and reports error to ...

...cake shell, so caller can receive an error code with message containing the number of errors found