added detect_fit modified with a simple linesearch and constants alpha,negative detection weight and laplacian power yielding nice results