bugfixes, better group name validation
some style