Fixed bad xml generated by download process.  Also corrected handling of some boolean input for scenario definition.