Added legend links and removed some old console.log