Changes with Not Allowing Activation of a Group Without Members Being Present

Also included was more logging of changes taking place to groups and
deactivating a group and a widget if the last person leaves a group.
Some code optimization was also included.
Adding some documentation