reviewed the code, fixed some grammatical errors in the comments