update: Added TagNote and fixed mkdir error

* Added function TagNote that attaches a tag to a note.

* Fixed handling of MkdirAll errors.

Signed-off-by: mr.Shu <mr@shu.io>