Add save_progress option to save the reading progress.
Reformat the code.