added update from file function to take the input file as data and update the graph
deleted contents