added features to CreatePlots.C