Fixed typos in docs. Closes #1636.