1. Add progress bar
2. update function doc