Fixed typo.
Changed external optimiser to use structure name as part of the stem for output files if it has one.  This way if the original structure was loaded from disk it is easier to see the correspondence between original and optimised.