Refactored out error and ok functions
Bump version to 0.2.0