Fixed addNodeActiveView().

Should not return after moving node to passive view.

Also refactored neighbor().

Also added simple log process script.