add word output in overlap.py