fixed various bugs - still major todos :
--------------------------------------
selection
adding sortIndex to custom numerical buckets

then it is onward to testing this in real applications