Removing deprecated functions
Refactoring addNodeFromTrail => addInstance, removeNodeFromTrail => removeInstance, and passing instances instead (better for SVG performance in future refactoring)