Added javadoc.
Fix parent reference of overlap constraint (never caused a problem as we can't create location/location overlap constraints).
Working range queries, passing tests.