documentation completed for sub.R and length.R; new tests