Add documentation
Add missing ;
Incorporate feedback from brh
reformat code
Merge pull request #206 from dmuino/docs

Docs