Node creation fixed, now also checks correspondence bet. nodes