Adding comments in some functions