Remove comment out code.
Fix then argument.
Add process.wait_for
Fix call then from apply.
Improved document.
Fix example.