Added some comments and minor spelling fixes