added network checking and persistence of tweets!