added comments to code for his to plot