Add docs for context param.

Also mark priority as optional.