fixed progress bar + added comments