Add public methods for printing histograms

This is for #3.