#4 refactored export function, and moved character into a root level element ptx, so there can be multiple.