Added function commentaries