Initial stab at writing docs

Used sphinx so the docs could be hosted at Read the Docs.

Closes #41 and #54 .
Is this correct? If it is, maybe we shouldn't be doing the second of these transformations.