Performed rubocop and made corrections.