Creating initial TF-IDF functions. Updates #1