Adding documentation and a test to Histogram