Fixed typos + autopep8

Found some small typos when viewing docs, so I corrected them and ran an autopep8 on the file as well.