WIP
ENHANCEMENT: rewrite document links in imported content plus white space cleanup