Saving functionality added (untested).
Merge pull request #1 from KyleMayes/serialization

Saving functionality added (untested).