Write javadoc for histograms