opt doc and sample