Code cleanup, implementation of enum_files.