checkfuncs.py: fix a bug that writing exp_ids of int type into txt instead of str, add ratio_max variable in ReExtract func; expand.py: give ratio_max variable