modified layer groups and added example
Revert "modified layer groups and added example"

This reverts commit ef4bf043630fa362485eabae9d7840a6be48de7b.
add layer groups
added example for layer groups
Merge pull request #571 from eczajk1/add_support_for_layer_groups

modified layer groups and added example