Added comments to each line of code.