export gen_map
default of result.dir
lapply returns list, sapply could return vector
update documents
add function for AIL simulation