Made some crude high-level functionality.

Thinking about making a proper ORM around this. That would make it easier to work with
the data, plus lessen the requirements for documentation.
started documenting