fix total for non-sum case, add README