Better handling of the main window and udp send and receive examples added