added parsing of gathered fileNames to a mapping between fileNames and fileTypes