Minor Bug Fixes and a Demo Matlab Script

Add example.m as a tutorial to using the function and I think its
pretty solid, but would like feedback.

The cutoff parameter was being dumb and now its not.