tested the base quantum espresso script and fixed some critical bugs