first pass at addressing issue #14 - refactoring error reporting.
Merge pull request #19 from rsby/master

first pass at addressing issue #14 - refactoring error reporting.