loads pickled model and sets up parameters