worked on rscripts.
Removed SegmentClearingPoint bug.
Improved queries.
Added scenario files.