Added the functionality to store the results in csv files. The RPE file has not been added to the summary files.