Added comments, removed some whitespace here and there.
Mainly layout issues (whitespace, position of brackets).