Update plugin interface: add getDefinition() and getInput() methods.
Bug fixing.