Added format field to query and fixed documentation.