Clean up formatting in FlowsQuery.java; Add pretty output