Documentation, covering factories and qr script.

Fixes #39