bugfixes
added comments to main plugin file