Added functionality for sets, and quite a bit more functionality for nodes