added documentation and modified progressbar