Minor cleanup + generate d3 files.