added clear data button, import of json and bugfixes