Add saveToFile.
Merge pull request #5 from darkowlzz/save

Add saveToFile.