changed calculateQuality() to save the results directly in csv files