added the functions for saving a loading to pickle, all done except testing stock issues