Tests, bug fixes and documentation.
Add an example and a README