generalization of input file specification with multiple terminal fields possibly with different rewards
simulation code (WIP)