Added a configurable legend, and updated the read me