added javadoc comments as well as changed the multicast retries and timeout to random