Missing function doc
Added possibility to pretty print JSON export.