Fix connected? & add nokogiri gem for future parsing