renamed stat-functions, added groupString-function