Improved group_tweets_by_state and find_closest_state