converted csv file into array, loaded into variable, and combined arrays to align fieldnames with their corresponding values