update d3 externs
add basic documentation (per `package`)