Implement legend() and clean up.
Merge branch 'master' of github.com:lizardsystem/lizard-riool