ADDED comments to new code

trying to get the json data to write to the page properly.