Updated the read file mode to universal newline to prevent problems with csv files from excel.