Update documents and sample tests.