fixed some typos added some comments