ADDED: can now write to unique files, thus keeping the old plots while generating new ones.