(PDB-712) Modify export to accomodate structured facts.

This pull request changes the export procedure to allow the export of
structured facts.