Reorganize according to notes.

Reorganize according to notes in 939a2dc.
Rewrite sub-query documentation.

Closes #28.
Merge branch `readme` into `master`.