Some commenting and restructuring in order to improve the git deployment logic.