Adding validity checks on generated sedml & sbml