Code refactoring: introduced helper modules

getChildrenDirectories(current_dir) - This gets the children directories
of the current directory

fileExists(file_name) - This module checks if the given file is present
Added module descriptions for the new modules