Working discovery sender and receiver, updated the main file