added scanNetwork
added checkCorrectAddress
added debug statements
added networkscan to main code
removed scan from each packet
added network scan to wake logic