minor fixes
added initailization of MeanAccumulator<double>
make meanaccumulator a template