added comments to each line of code