added more comments to the script