Added in some helpers: list_files, is_file?, is_folder?
Adapted core algo to use these