Added CSV, changed all print() statements to outFile.write()