Created/Modified  functions
added suitable comments inside and outside functions

Signed-off-by: Gowri <gowri78@gmail.com>