Added a regenerate file and trimmed some code
Added documentation to the controllers