adding documentaion to the controller and the model.