corrects mistakes in code examples