now saves to pickle file; added the M script file