added distortion limit, distortion penalty and beam width to config