added documentation to plotMean and added the ability to do weighted and unweighted means