Add spawn documentation and tests
Add spawn documentation and tests