Added first round of comments to the script to make it easier to understand.