small chaanges to plotting-simulation code