add comment, clear text function, server close function