clean the comments and add 'pause video to wait for segment finish download' feature