variable fixes
multiple group can be created now
tests and small fixes in data output