Fixed variable typo in profile plugin
Refactored the group mapping plugin and removed the mapping libraries