added some comments to the script