Added functionality to print to excel and sort .csv entries