run_model function

A function that runs an app for specific settings and processes results for plot and text generation