Fixed some typos in example code