Small documentation and format changes

I was going through the code and couldn't help but notice the spelling error and adjust some formatting meanwhile.