Updates to R scripts to generate JSON and depgraphs