minor tweaks + ensure setting the comparator at construction time

+ documentation
expect nodes to be added interactively from stdin