move content from csv file into another text file
removes while loop, adds comments, fixes spacing issue, optimizes code