Fixed bug with reset behaviour not deleting root string nodes.
Fixed syntax error
Switched to using unix domain sockets, fixed output format.