Corrects dependency download. Refactors program variables and dependency extensions