Add phase and bias to the oscillator.

Improve interface, and add continuous mode.