fixed bugs about exit for gui, code opt
add help message
fix bugs