Added pulsetrain mode to oscillator