added generateMultipleOutputs to code generator.  uses a slightly different doSetup() signature than what generate() provides.