Fixed most rubocop style warnings.