new BlockMgr class for handling splits. Flattened Context classes to one class, added getType methods to records.