added documentation to the controller