Fixed some typos and outdated examples in documentation.