Fixed reconnection bug.
Made nodes reconnectable and detachable.