throw errors not strings
Merge pull request #2 from AWinterman/throw-errors

Merge PR from AWinterman to throw Errors instead of strings