Refactored result construction to allow for output formats other than Microsoft Word in the future.