correct some typos and comments