Minor doc and messages fixes [skip ci]

Also I think the `type` property should be changed to `format` for consistency.