Started refactoring things related to the controller.
Added templates for the manuals.