Added .rubocop.yml and fixed more issues