Fix a few typos and added some comments