adding BCHistogramBase and massive changes to drawing.