payload.write_payload: use `single` keyword instead of `update`

* change default behavior when adding payloads to single=True
* document write_payload