Added rubocop configuration file. Corrected some rubocop violations.