refactor docs for histograms