Starting the great big refactor. Adding more model classes for document management. Removing chunks of confusing code from the master view controller.