added code to check for single-word operation overflow in addition and underflow in subtraction