Changed sigma2 to sigma2s, sample functions to sample.ar