Add documentation
Rename on_complete to on_result