Rewrite rucheUtil().register, add tests and documentation