Variable sinecurve implemented

Fanks Tobias