Legends are collapsible

This is related to number 10 of #46.
Fixed silly mistake with tooltips

If you show tooltips on mouseout they will never disappear...