added methods for writing averages for compare graphs to file