Add output file E, M and sums