Added rubocop configuration file. Corrected rubocop violations. Updated ruby version.