Fixed bugs in code examples.