revised prototype_1.py; added plotting and input/output to prototype_2.py which stores json results in results directory