added Quantity->ne and QIntervalUnion, fixed some bugs