Tweak documentation.

* Use jsdoc syntax for the default value
* Describe what passing a priority does