Modified the convert in document_converter.py to work with the new architecture