Fix typos and change syntax of examples.