fixed: bugs in code examples