wrote some more, added plot of sample sine curve