Added error class and handler functions.
Closes #71 - error handler function in place, ready to be extended for logging, extra handling, etc.
Merge branch '71-ErrorHandler-Improvement'