writing files now
Merge pull request #7 from flying-sheep/master

added file writing