remove unused code in javascript validation
add function and file comments to config and models
add function and file comments to controllers