This encapsulates a lot of the required memory management into the Buffer object and related code. Many now unneeded classes were deleted.