Add json save and load funtions