fix syntax for new doc metadata
Always prefer explicit note arg over opts value in note fn.

Fixes #74