Add function for plugin to add layerGroup and persist display status between session
Fix logic bug in addLayerGroup
Fix comment
Merge pull request #231 from Xelio/patch-addLayer-for-plugin

Add function for plugin to add layerGroup and persist display status between session