Adapted "write_history", now starting to combine for both new and existing models
Combined "write_history" functions for both loaded models (from file or URL) and newly created models.
Adapted examples for paper and added sensitivity analysis plus notebook