update readme to match code
added tests and error handling
version bump