literate commenting
editing error handling a bit, adding test, updated docs
release 0.4.6