added log model to script as well as a plot of the predicted results