msgQ: some code doc and minor cleanup