Fix bug where git info disappears when not in the git root directory
Fix code documentation