Fixed syncData, now properly saves in a .json file