small cleanup of spindle functions
detection of spindle works well using procedural approach (more functions and linear). the process is not object-oriented, it's best to run all the processes one by one. It should be easy to extend it