udpated doc and debug option