Slight refactoring and a bugfix.
Bugfix.
No-op changes to example. Wrote readme.