update to working example and documentation