Added a method to reconstruct the state of inputs and outputs for each model.  Essentially this replicates part of the code in the constructors for each model so that they are reproduced after unpickling.