Added localstorage and model.save/load