Added documentation

Basically added a section about how to use this stuff and how it works.