Test and documentation for rucheUtil.extract()