Fixes #414 - integrates rubocop gem

Adds rubocop gem and fixes majority of issues noted by cop.
Same as above, b/c rubocop said to. Let me know if this still needs to revert.