Review corrections and refactoring
Improve tests
Add how-to documentation