Major Overhaul.  Added features to FlatWav, gui, compensate_signal.  still needs testing