add a debug route in example
give a quick spruce up to example.py and move it to examples/basic.py