Made the code a little prettier to read

No functionality or coding was changed. Only whitespace, typos and comments were fixed.