SBMLWriter update + refactoring