Formatted code with go fmt, generated docs
Added WeightedMean function along with test