added a line to each csv output file with the average values of its elements.