Fix typos

Paramter -> Parameter
Raise exceptions instead of strings
Merge pull request #8 from alex-hofsteede/error_handling_fixes

Error handling fixes