added documentation and example for metab