Add type hints
Fix namespace in examples