Update docs for auto-populate.
Don't return function in auto-populate, making the function cleaner.
Rename auto-populate to a more conform populate-all.
Clean up and decrease complexity of populatePaths function.
Attach populatePaths function to model and add documentation.
Slight reformat.