Example added to README.
Divided into multiple modules, fixed #2.