Added comments. Prettified json output. Formatted recursive query.