Moved lowercase to checkFileType(), added check for null to access keys, implemented parallel fileList fetching