Changed calculation of the autocorrelation time, adjusted the variance arrays.