More comments, removed unnecessary whitespace, added const modifiers where possible