refactors and documentation for Github cache builder