Updated d3 reference, adjusted some examples