progress bar

-reduced the code generating the progress bar
-changed from if/else to to for loop
Merge pull request #2 from TheDoxMedia/1.0.1

progress bar update