removed json file read/write support, added more structure in file main.py