Add more comments to lengthCostWeight