some fixes in key distances and small improvement in scoring text (now homogeneous pairs and symbols before space are not computed)