quick indentation fix and whitespace trimming
lint and formatting

Linted the code and made the necessary changes. Fixed some indentation
and trimmed whitespace.
Just a general code clean-up.