Optimized tweet download a little, also added boilerplate code for search query preprocessing.