Added some additional comments to each line of code.