clean up spindle detection, works pretty well now with some methods implemented. It needs tests
added resampling, but it needs quite some testing, to check that the frequency content is intact