Modified API to support gen/regen/d3js options'. Modified regen so that it calls read_existing_matrix_data method and generates a figure