Update code comments, fix typos.