Removed use of global variables (cf. CHANGED) in controllers and began writing documentation using Sphinx (cf. docs directory).