Word documents generate with minor issues. Serious refactoring applied.