using getopt, added wideband and verbose switches.
fixed a bug in fine frequency search loop, improved verbose mode