added API and new option (AllowMinusMoneyByDeath) in config