Configuration is read from a file upon instantiation. Also, modified unstructured process to fetch the text version of a doc from the doc-service.