minor imporvements.  prevent overwritting of files when running multiple instances and some graph improvements.