Documentation

I got tired of troubleshooting travis issues, so I wrote some documentation.

Hopefully the documentation provided here is clear, and the code is syntactically valid. If it isn't I'd be happy to hear about it.