added options to save and load model parameters