update docs and cv function