fix typos and add some comment