Circular data & cross references #110

Placed the logic into the writeNode function. Also removed the option to
enable the search: it's not the default and cannot be changed. Syntax &
other small changes following comments.