Check comments, format and fix some typo.