Update API docs, add helper for json and make all the models have public_params for API output.