Adding rubocop, travis, and gitignore. Fixing rubocop failures.