Made some more comments to the functions