Fixed several rubocop offenses.