file writter with its tests
fix a typo, writter -> writer
merge master
Merge pull request #14 from shanzi/gitmodel

file writter with its tests