Better error handling

tests for error handling
version bump