fixed various flw issues, added some new xml params for .flw output