added usage, more options, handled case of note not existing for a commit