correct typo and add comments