Switch to Node_ptr

Switch to Node_ptr and Node_wptr instead of raw pointer
Improve sleep time