"Working" model main program.

"Working" model main program with combined code.  Problems with results
and text file output, but at this point (9/18/13), model seems to be
working in general.