add main script
add an example with constructed sinusoidal curves