annotated the index file to add explanations to the d3 functions