addObject method take ipaddr as default member type

More important that this small api improvement is that the addObject documentation was udpated because the previous one was wrong and could be a pitfall for new developers