Fix typo in the docs and improve example format