Update the plugin code, add the comments to explain the plugin