fix bug in numGroups calculations
cache behavior enhanced, proper reading and writing (if miss read), test method enahnced in BengoData