added json pretty print and extended help