Added docs and sample code