correct typos and comments