Prepend total and average to result files