rename "schedule" to more accurate "schedule_limited_resources"
Calculate depth of interval set.

small bugfixes in interval.py