Adding rubocop gem for code checking
Fixing some code that causes rubocop to error out
Fixing style problems in script directory