Updated plugin interface, added examples