Add option for minimum entropy. Fix warnings.

Ho ho ho an xmas pull request.