Code to plot largest component added and updated demo files