Added conversions of field names, and flagged fields for indexing
Added error reporting of illegal query; fixed fields xml in the parameter file