Added word export functionality