Disabled save as function as this created diagrams which had references
to the diagram they have been created from.
Restructured editor template.
Generated source code