Add Error struct type and tests, enabling easier error return checking
Merge pull request #10 from mdlayher/error_struct

Add Error struct type and tests, enabling easier error return checking