added some comments to ribbon plot code