Add .rubocop.yml and fix most of the warnings