add comments on every function