add enum IntervalRelation

see issue #164
enhanced javadoc
enhanced tests