Add plugin.register to the documentation

next() needs to be inside the register callback. Actually, the `plugin.register()` callback should just be `next`.