Updated comments to reflect functionality of script.