add comma end of list
add cfg_file variable
use yml config file, and make config file by yaml.dump()