Consistency check for grammar
Correct a lot of the grammar and spelling. Also spent a few hours fixing the comments so they follow a standard.