optimize the algorithm of getNewStreamId()
modify Connection\Node() arguments
modify comments of some functions