Simplification and additional commenting in Git class constructor.