VP-317: renamed functions, added comments

Renamed getModules and getModulesImp to getFiles and getFilesImp as this is more descriptive of what the functions actually do. Added comments for each function. Also updated the description of the task; will update this in other locations in future commits.