DRYing callbacks

And more unused variables cleaning
Removing unused variables
Add update and updateDates API headers
Refactor code to use d3.js core functions to repaint updated cells