new demod test

working but frequency seems to be shifted?
minor variable changes

demodulated frequency still shifted by about half?