Added printing of queries to the compiler.
Fixed a bug where single-line terms didn't string-quote their functor.