Fixed some typos and standardized the documentation.