Added scanning algorithm. Untested
Added another implementation of local pulling using a better algorithm. Red.
Fixed a bunch of bugs in node3. Simple tests working
Fixed the bugs in node3