added more comments to code. uploaded plots

added more comments to code. uploaded plots