created first draft of doc tagger part3. Added a bunch of functions which were taken from part2
created first draft of doc tagger