added some json functionality
improved some of the code structure and added command line parsing to read the info file