Gathered file ending arrays into fileInfo, moved file endings creation to fileInfo