redesigned reading of input data, added json file, added default config (so it is free of disk)