Adding comments and fixing typos