Fix typos and syntax errors in examples.