Fixed some indents and spacing to make code more readable.