finished timeoutinterval method and init global variables
finished all methods. b sends back fresh packet