Add documentation
Fix indentation and refactor controller
Fix indentation and refactor model