Better generalized the udev example
Added command line arguments with getopts