implemented getMean, fixed compilability

still have to do stdDev