Added some comments & fixed some typos