Changed sinewave generator to use cosine function - if for some reason you want DC output or very very low frequencies (0.001hz or less)