added graph plotting and file saving
added graph plotting and file saving