Add documentation

Add documetations to files and functions. Closes #17
Merge pull request #19 from rmtmckenzie/readytosubmit

Add documentation