Changed error calculations for several terms so that they calculate over all time steps.