Allows configuration of "lower number is better"

rebase of #67