adding progress bar, comments/documentation