Bugfixes.
Rev version numbers.
Fix error class bugs.
Update tests.
Merge pull request #40 from kylerush/bugfixes

Bugfixes