Adding explanations for the .doAverage() functions