Add initial labels for each row
Remove some unnecessary loops
Replace .attr(class) with .classed()
Position labels correctly
Merge branch 'master' into gh-pages

* master:
  Position labels correctly
  Replace .attr(class) with .classed()
  Remove some unnecessary loops
  Add initial labels for each row