master #26 add MessageGroupType and related S4 class