fix document

- fix arguments of on() in introduction
- fix a typo and an example output