Fixed sorting of the times in the histogram, negative numbers were NOT being handled well.
Alsoadded an interval class to handle complex interval measuements, like year and month, which change based on the month/year