more functions, refactored "country_data" to "data"...what the hell was I thinking when I gave it that name?