Add comments to functions

Signed-off-by: Gowrishankar Rajaiyan <gsr@redhat.com>