Added ability to save to JSON (no loading yet)