added functionality to ack every second packet 

fixed division by 0 in mindelay