Finish doxygen doc work and style of arg checking

* The commit completes the work with missing doxygen documentation and
  changes to have consistent style of argument checking in git2r C
  code.