rbtree: comments and cleanup