Small fixes:

Add semicolon to line 53.
Correct variable name sine_wave_freq to sinewave_freq.
Casting step_val on line 55 to (double) to avoid a runtime error.