remove dead code
fix incorrect type casting
print detected encoding in verbose output
add adaptive coefficient for decoding error
force using default score table