#3 Refactor error handling into class structure
Merge pull request #11 from xtfer/3-error-handling

#3 Refactor error handling into class structure