Simulation cutting

A new script for cutting off the end of a simulation and a fix for the
plotting function if plotting on log scale.