rename lengthList lib
fix output file name and some other changes
add some library
add some flow control in fix method