Works with individual as well as ranges of IP addresses, though a kluje right now.  Need a more elegant way to deal with the options and preferably out of main.