Fixed comment typos, updated documentation