updateOpInMem, Sub, Add, some small fixes