improvements to interferometer_demod