noisy_cor fixes, put in another file, need to load stat221 package