Made simulator run for actual length of time given.

- before, it ran for one time-step less