Setting default values and adding comments to the functions