Added some comments to the lines of code to display what the intended function might be for that line.