added waiting to make sure all the output from subprocesses is displayed, and better stdout reading
added waiting to make sure all the output from subprocesses is displayed, and better stdout reading

computationalEpidemiology/biobankAccelerometerAnalysis,aidendoherty/biobankAccelerometerAnalysis,computationalEpidemiology/biobankAccelerometerAnalysis,aidendoherty/biobankAccelerometerAnalysis