Function to write Ontology CTMC models as a .Rev file for execution in Revbayes

writeRevOntologyModels(td, M, dir, dirW, dirR, dirD)