add some command line tool for debug purpose, and bug fix
Merge pull request #10 from mmis1000/master

add some command line tool for debug purpose, and bug fix