added documentation to the controllers