Added the remaining queries, cleaned up some code, adding some useful logging, and fixed some bugs that went unnoticed in the reading of parameters and the parsing of same.