Fixed a bad syntax error
Fixed IDF and cosine similarity computation. Fixed tokenization of query if puunctuation characters are present