Adds rubocop and fixes