collapsed main loops. first attempt at fixing #10
Fixed progress bar and initialization for #10 fix