Refactor consume package. Make error checking consistent. Remove internal Buffer instances from PageBuffer.