Update and fix all style errors

Added a Gemfile for Rubocop.
Added a Rakefile to rake test with Rubocop.
Fixed every syntax error according to RuboCop.

Code functions as needed, syntax is just correct now.