I made yet another update, added Robert's patches and some other stuff to prepare for sorting ascending and descending.
Also took out the 2 inline queries and put them into .xql files like I should have originally but forgot.
Added a tarball option on the doc.