Exported countries as JSON
Made  a global variable
Added CSV export
Added validation function