script to parse word files