Prettify json output for easier checking

Add extra debug output