created legend at bottom of graph
bug in text plus some cleanup