Update readme.
Improve error reporting when formatting queries.