Major Updates to 12-Model.R

Lots of development in 12, more minor changes in shell script and 10.