Fix small bugs in apply_model. Set up for a 2009-2010 run.