Adding in save functionality
Fixed up JSON.stringify