updated the documentation for the query script and edited the queries themselves