line endings normalized
result coeffs check and psnr added