avrg functions now take intervals
docs for interval averaging, fixed doc typos