added in code to pickle the models - not yet tested