More options, cleanup, documentation and jshint

We are starting to use this plugin a lot. I wanted to clean it up a bit and add some documentation.