Document the format in the README.

And add some new test cases.