added rubocop
various rubocop fixes