Godoc improvement

Hi,

The final change is made to allow godoc properly associate the Priority constants with the type definition. With this the docs are clearer.

The two initial changes are just lead up to make the code more standard.