CreateGroup with a name

Added option to add a group of lights and provide the group with a name.
Also some refactoring.