doc: add example
doc: fix errors