change avgSEFD to write log file listing gains, etc
put in a try/except block to avoid bad gains line, plus a few debug statements
this version includes Sharp routines