Fix some rubocop warnings, update license in metadata.rb