avoid modifying input countries in library functions
Merge pull request #9 from danse/develop

avoid modifying input countries in library functions