1. add save public method to save file 2. add thread to cleanup file to avoid to use all disk and use mutex to synchronise IO