Add phase and bias to the oscillator.

Improve interface, and add coninuous mode.