Remove unnecessary globals
Round #/samples instead of truncate. Fix a few small errors
Add filter file(not yet used)
Reorder functions. Add more options, plot tests. Try to improve addSynth(), but apparently break it (see plot)