Improved some comments

Improved comments on functions