Updated the docs with more complete examples.