fix some problem,and add some comment.