- implement clean_up of temp files
- add dirty buffer flag
- adjust tests accordingly