added description comments to the functions