Fixed knot_identification to not crash on failure. Removed prints. More refactoring and experiments.