revised generateMOdelCode.sh and updating to new commit for modelEZ submodule