added getDoc functions to extractors.py