added comments and progress bar