model1 now also scripted
rolled analysis into model1.py