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

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