change extension of input files
bug fix and add test tools
add LDIH LDIL but not tested