Added knot insertion, got tests working again after refactoring library