added $flags and $optParams to exportList (before $columns)
made quotes more consistent, moved line breaks to end of lines
amended some comments