Added compiler options, fixed warnings and added spec for pretty print xml
Added NSI 2.0 query operations