add some comments and typo fixed