Added comments and minor spelling corrections