to implement the function of comment (frontend) and fix some bugs in the code