Abstract

1. fixed crash.
2. finished write to file.