Improve syntax and style in examples.