Added comment sections for model and controller functions.
Fixed spacing in switch-case statements
Merge pull request #16 from aososa/code_cleanup

Code cleanup