Plugins API expansion & update

Plugins API expansion & update
I think this would be more readable if we used `pluginResult` instead of `log`