Fixed a small bug in the plotting and a couple comments