fixes #12
Improved logic of creation of group for contacts.
Improved comments.