Added support for reading graphs and saving of reduction script with arguments