Adds rubocop and makes it green

There are still a lot of changes to be done, that are in the rubocop
todo. Maybe using rubocop auto correct would be a good solution.