Started to implement the ndtable class for a base object for a histogram.
Some code cleanup from previous testing.