add function of saving file to local storage
modify an error message
Merge pull request #7 from chestnutchen/master

add function of saving file to local storage