Restructured to be nicer example Code restructured to better represent best practice when using libgit2.