Improve EG; Change calculation of VCO frequency