Minor adjustments to confidence intervals script. Added a mean vector return in the first function