Add commments

Seeing as creating lightweight Git servers is becoming more popular, I see this implementation as somewhat the canonical approach. So why not add some more comments to it and let it be a document as much as a script.