Testing without debugging
Corrections on the cut of the set R and added documentation