Changed areApprox to isapprox
removed no longer used naiveresample
Removed commented out debug code
whitespace