I will change the argument to `actype::Symbol=:correlation` as you suggested, thanks John, I prefer it too this way.

About `demean` I am not sure I got you how control flow would account for the three cases using `Real`; ok, I will let you go through all the code and you will explain to me later what you have in mind about `demean`.