add necessary code for role relation creation between rolegroups,
roletyps in rolegroups and issue #22