Improved printing of query strings
Made changes to decoding and the field cache and updated the Expr function to use the encoder
Added code to encode structs