back port mods from ESSS to check and vary exposure time
clean up ave_frames.c; have pick_star set default exposure time