Fixes #414 - integrates rubocop gem

Adds rubocop gem and fixes majority of issues noted by cop.
Please use single quotes and add a space before the `\` at the end of each line.