updated NMT state machine and nodeguard handling
updated NMT state machine and nodeguard handling