Cleaned methods for mean and variance computation. Started cleaning correlation(auto) method.