added licence (MIT)
added docs for addNextNode() and getNextNode()