added storage usage to save settings data in a json file