GH-15 use instance comparison in helper methods. Added JSDocs to ActiveNode.