adding rubocop and fixing app