Cleaning up script, fixing typos, deleting pdb.
Starting process of using generated json to not make pointless requests to central server.