Code review src/git2r_note.c and src/git2r_revwalk.c

* Fix missing doxygen documentation.

* Change to have consistent style of argument checking