Adding duplicate detection to nodetable exporter, fixing instance glitch