got smoothing working and added a generic plotOSC function