added options: max_depth, leaf_only and unique_category