added demod script (WIP)