fix code examples + fix typo