Added getNode.

Fixed logic mix up in createRelationship