Completed first draft of export from XXXXXXX app. Need to add comments
and clean up.