tweak
move variables to cfg
tweak
move two functions; pass kargs
land two functions from make_root_files; remove multi_vars
use variables
correct the dirname
comment chi2