fix typo, add comments