Added group attributes

Added group attributes and moved radio_groups to RadioGroup class.