Updated error statistic computations so it now generates files.