updated script
added validation to check for things like abnormally long timesteps
typo