Renamed files
Improved argument checking in gitr2 C functions called from R