tidy up and adjust denominator in acovf
zero-out AFTER demeaning; add unit tests for acf