Changed signature of functions: search, redraw_node. Comments fixed.