add calculated averages

fixes issue #6