fix bug in progress bar code
moved use strict to top of file for perfect Perl::Critic score
do-perl-critic.pl runs Perl::Critic on any perl file; use it to test your code