Added control model for proportional control of phase
made io prettier