tests all pass. Autocorrelation seems to work. Now testing to check for errors