refactor to remove logic and dependenices from controller, place in model.
removed redundant FolderDocs model
eliminate whitespace