Added comments to root alloc logic