Added documentation to controllers and models