More documentation

I'll have to move this shit to a wiki at some point.