implements comments and some functions