Add a reference to the plugin object in the Tool class and also improve
documentation a little