Somewhat ugly but functional legend.
Merge branch 'legend'

* legend:
  Somewhat ugly but functional legend.
Wootheee fix.