Slew of changes modifying genModel.py

genModel.py modified for modes of operation. Wrote code for modeEach()
to generate model for each doc in given dir.