adding rubocop, fixing some of its complaints