update sample and documentation