Added __mod__, __rmod__, and __invert__ methods to ADF class.