modified comments
created a function to createNode in Ontology relation
modified loop condition to save the last Term added