Update and Fix all syntax 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.