fixed some typos and translated some comments in source code