Added some comments to my functions