modified the loop in loadtxt such that it pops from the deque
readgro and residuize implemented