Added comments to help organize the script