add .gitignore file. Move preprocesing logic outside the tfidf logic