Format form

I tried to add documentation and an example for the stuff discussed in #156 .

Documentation is not my best skill, so feel free to rewrite anything unclear ;-)