Added in-line documentation of what is happening with the controller.