Added docs to main controller
Added docs for model
Added root scan directories to db
Fixed various bugs in controller