Fix typos and add comments.