updates to scripts and autocorrelation calculation