update and fix code examples