fixed name of vars to camelCase and refactoring of gitHistory