Small coding fixes to get twolevel_model_building working with current code changes.

Includes a TERRIBLE HACK in the NLIN.py module. See Issue #76 for more discussion. For now, it should affect no other applications and gets twolevel code running.

I'll be adding stats tomorrow.