Fix some typos and correct documentation.