Refactor text file and editor.
Merge branch 'master' of https://github.com/gang-chen/samoyed