Updating API for annotated tags.  Add tests for API.  Strip leading/trailing whitespace from msg, if present.