inclusion of previous version of model analysis script with code for correct colour coding etc.