Refactor knot classifier
First part of experiments
Fix merge conflicts