Progress on thin plate spline port

Minor fix to TPS,
add test to R2LogR,
add logging for upcoming debug.