implementing the files writing part
Improving the code decoupling in the git class