added ability to write comparison results to json file and modified
information structure in json output