Added Rubocop

Added Rubocop, and fixed current errors