First working iteration of doc_tagger.py