Fix some of the layout problems in the model diagram, and export to PDF and SVG.