DEC and CMP

Decrement function corrected. Comparison function added