Tweaking legend, work in progress
Merged main.js