Generate JSON in pretty form, and add ip address

Store the IP address from the node in the node file. Also, pretty print the JSON so it's easier to manipulate.