mgi shared mem channel code and doc fixes