Finished doc for sample
Added doc for generic.bagging