Fix kink-finding to correctly grab kinks
Uncomment line for compiling code first