Added description of functions

Used description of functions in guidelines to create comments of
functions