Cleaning up UDP client to use getopt() and added some comments