Added cJSON library.
Made GUI a little more dry.
Added saving and loading to one file in json.