add help function and fix some bugs