Fix undefined variable notice
Export lots of information into a pretty printed output.json for testing