a few minor tweaks

Hi Gustavo,

I took a read through the code and added a few comments along the way.

There are still some things I don't understand, mostly the GitHub stuff in `hackedRefs` and what the `git-upload-pack` SubPath is about.

Nathan.
I had a lot of trouble trying to describe the implementation in one line. Suggestions?