revert back to old R at end
Fixed argument checks for plotForwardSim.m