Added detailed documentation, changed the interface of the Plugin.