Added colour legend, renamed defaults global, and, fixed minor bug