A little cleaning

Hi Matt,

I'm a huge fan of this plugin, and I just thought I'd try to contribute a little to it by fixing a few typos and simplifying some logic statements.
Hope you can use the input.

Keep up the good work!