adding "save" line to save potentials just before run crf, in order to find NaN or inf.
Replace isfield with isprop. and bugs for r6 fixed!