adding legends, tooltips, styling

- added legends
- added tooltips using d3-tip.js