Added chaddr and extended print in dhttest. Fixed some simple bugs in dht.