program now creates a csv file with proper info