fix a min_idt bug
the python split does not work the way I think it is, replace that with
proper regular expression match
sometimes there is no good region. fix bug
add edge_tolerance option

make -trim a toggle option (no need to append "1" to enable trimming"

make the input parse a little bit more format error tolerant

refactor config meassge pass to make it slight more readable, keeping
using tuple, one can use dictionary for more readibility

TODO: properly move from python multi-processing to multi thread C code?