implemented cmf_descendants and depth support in cmf_next/cmf_prev

fixes #10 and #11