cleaned up some problems with leftover notes and
changed the criteria for the final plot to make it
more clear