Fixed indents and comment spacing and punctuation to be consistent.