fix some styles and pretty print json