Updated main file. Parsed JSON output