Fix typos and add more comments.