Added comments for the controller class.