add docs for Average