added dac operation. Attempted to fix sub operation to give correct output value.