Fixes #414 - integrates rubocop gem

Adds rubocop gem and fixes majority of issues noted by cop.
When using line continuation with `\`, please make sure to surround the `\` with a space. I noticed this in other files too.