added ability to save and load to json
merged with master
Merge pull request #4 from generalzhou/save_and_load

added ability to save and load to json