Improved algorithm to convert reviews into csv files